home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / pdcurs21.zip / PORTABLE.ZIP / WINSCH.C < prev    next >
Text File  |  1992-11-21  |  2KB  |  48 lines

  1. #define        CURSES_LIBRARY  1
  2. #include <curses.h>
  3. #undef winsch
  4.  
  5. #ifndef        NDEBUG
  6. char *rcsid_winsch = "$Header: c:/curses/portable/RCS/winsch.c%v 2.0 1992/11/15 03:29:26 MH Rel $";
  7. #endif
  8.  
  9.  
  10.  
  11.  
  12. /*man-start*********************************************************************
  13.  
  14.   winsch()     - Insert character
  15.  
  16.   X/Open Description:
  17.        The character ch is inserted before the character under the
  18.        cursor.  All characters to the right are moved one space to the
  19.        right, possibly losing the rightmost character on the line.
  20.        The cursor position does not change (after moving to y,x if
  21.        specified).
  22.  
  23.        NOTE: insch(), mvinsch(), mvwinsch() are macros.
  24.  
  25.   PDCurses Description:
  26.        See the call ctrl( bool bf ); for information regarding the
  27.        replacement of all former 1.4 and prior "raw" PDCurses
  28.        routines.
  29.  
  30.   X/Open Return Value:
  31.        These functions return OK on success and ERR on error.
  32.  
  33.   X/Open Errors:
  34.        No errors are defined for this function.
  35.  
  36.   Portability:
  37.        PDCurses        int winsch( WINDOW* win, chtype ch );
  38.        X/Open Dec '88  int winsch( WINDOW* win, chtype ch );
  39.        BSD Curses      int winsch( WINDOW* win, chtype ch );
  40.        SYS V Curses    int winsch( WINDOW* win, chtype ch );
  41.  
  42. **man-end**********************************************************************/
  43.  
  44. int    winsch( WINDOW *win, chtype ch )
  45. {
  46.        return( PDC_chins( win, ch, !(_cursvar.raw_out) ) );
  47. }
  48.